package socket;

import com.sun.org.apache.xml.internal.security.Init;

import java.util.HashSet;
import java.util.Set;

public class UserLogin {
    public static boolean login(String username){
        Set<String> set = InitUser();
        return set.contains(username);
    }
    public static Set<String>InitUser(){
        Set<String> set = new HashSet<>();
        set.add("111");
        set.add("222");
        return set;

    }
}
